﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Engine.Sgml.Merging;
using System.Diagnostics;

namespace Engine.Sgml.Allocation {
    internal sealed class InAncestorAllocator {
        private InconsistentBlock block;
        private InconsistentBlockAllocator blockAllocator;
        private bool allocateAfter;

        public InAncestorAllocator(InconsistentBlockAllocator allocator) {
            Guard.ArgumentNotNull(allocator, "allocator");
            blockAllocator = allocator;
            }

        public void Initialize(InconsistentBlock block) {
            Guard.ArgumentNotNull(block, "block");
            Debug.Assert(block.Count > 0);
            this.block = block;
            
            }

        public bool Allocate(SElement ancestor, TreeNodeItemType type) {
            
            }
        }
    }
